package com.ocom.payconfig.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityDishesClass;

import java.util.List;

public interface DishesClassService extends IService<EntityDishesClass> {
    List<EntityDishesClass> dishesClassList(Long comId, Integer merchId);

    List<EntityDishesClass> dishesClassOfCom(Long comId);

    EntityDishesClass selectIsParentId(Long comId, JSONObject jsonObject);

    EntityDishesClass selectIsMerchId(Long comId, JSONObject jsonObject);

    boolean newDishesClass(Long comId, EntityDishesClass newDishesClass);

    EntityDishesClass selectClassName(Long comId, JSONObject jsonObject);

    boolean updateDishesClass(Long comId, EntityDishesClass newDishesClass);

    EntityDishesClass selectParentId(Long comId, Integer merchId, Integer dishesClassId);

    EntityDishesClass selectDishesClassId(Long comId, Integer merchId, Integer dishesClassId);

    boolean removeDishesClass(Long comId, Integer merchId, Integer dishesClassId);

    EntityDishesClass selectDishesClassIds(Long comId, JSONObject jsonObject);

    EntityDishesClass selectDishesClassIdEs(Long comId, JSONObject jsonObject);

    EntityDishesClass selectrMerchs(Long comId, Integer merchId);
}
